package com.encryption.util
{
	import mx.formatters.DateFormatter;

	public class DateFormatUtil
	{
		public function DateFormatUtil()
		{
		}
		
		public static function commonFormat(date:Date):String
		{
//			var year:Number = date.fullYear;
//			var month:Number = date.getMonth() + 1;
//			var day:Number = date.getDate();
//			var hour:Number = date.getHours();
//			var mi:Number = date.getMinutes();
//			var second:Number = date.getSeconds();
			var formatter:DateFormatter = new DateFormatter();
			formatter.formatString = "YYYY-MM-DD";
			return formatter.format(date);
		}
	}
}